<template>
  <MenuNavigation />
  <!-- @wheel.stop="handleScroll" -->
  <div
    ref="exhibits16"
    class="jy-style-height Cultural-box"
    id="Cultural-box-id"
    :style="{
      background: `url(${publicUrls + 'free/style13/publicStyle13Bg.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="content-box" @wheel.stop="handleScroll">
      <div class="Cultural-heard">
        <img class="backHome" @click="blankHome" :src="publicUrls + 'free/style13/backHome.png'" alt="" />
        <div class="Cultural-heard-title">
          <img :src="publicUrls + 'free/style13/arrow1.png'" alt="" />
          <p>展品图库</p>
          <img :src="publicUrls + 'free/style13/arrow1.png'" alt="" />
        </div>
        <div class="percentage-text" id="percentage-text">
          <t-popup
            :content="type ? '横排布局' : '宫格布局'"
            v-if="!store.isMobileType"
            placement="top"
            showArrow
            attach="#percentage-text"
          >
            <i class="freeIcon freeIcon-mg" style="color: #333" v-if="type" @click="type = false">&#xe65a;</i>
            <i class="freeIcon freeIcon-mg" style="color: #333" v-else @click="type = true">&#xe64d;</i>
          </t-popup>
          <div class="screen" v-if="!store.isMobileType">
            <div class="seach-Icon-dot" v-if="isMassage"></div>
            <i class="doorIcon" @click="visible = true">&#xe666;</i>
          </div>
        </div>
      </div>
      <div class="content-bg">
        <component
          :is="components"
          color="rgba(50, 43, 37, 1)"
          v-if="type ? viewportwidth : viewportheight"
          :byid="type ? 112002 : 111002"
          :width="type ? getScrollWidth : getScrollHeight"
          :checkHeight="true"
          :scroll-src="publicUrls + 'free/style13/scrollBar.png'"
        >
          <!-- 内容 -->
          <template #[dynamicSlotName]>
            <div class="right-scroll" :class="{ 'right-type': !type, 'right-scroll-min': list.length <= 4 && type }">
              <div class="is-null" v-if="list.length === 0 && !loading">
                <img :src="publicUrls + 'free/style13/isnull.png'" alt="" />
                <p>暂无展品</p>
              </div>
              <div
                class="item-parent"
                :class="type ? 'item-parent-nowrap' : 'item-parent-wrap'"
                v-else
                v-for="item in list"
                :key="item.id"
                @click="pathInfo(item.moduleId, item.id)"
              >
                <div class="cover-img">
                  <div class="cover">
                    <img :src="$filters.getLinkUrl(item.coverUrl, '?imageView2/3/w/420/h/520/format/webp')" alt="" />
                  </div>
                </div>
                <div class="cover-name">
                  <p>{{ item.name }}</p>
                </div>
              </div>
            </div>
          </template>
          <!-- 滚动条 -->
          <template #[dynamicSlotChild]>
            <div class="solidBorder-child1" :class="!type && 'solidBorder-child2'"></div>
          </template>
        </component>
      </div>
      <div class="content-door">
        <i class="iconfonts">&#xe6dd;</i>
        <span>永不落幕的展览与展示平台</span>
      </div>
    </div>
    <t-drawer
      @close="init(2)"
      placement="right"
      :attach="exhibits16"
      v-model:visible="visible"
      show-in-attached-element
    >
      <div class="seach-box" id="seach-box-style11-id">
        <div class="seach-box-title">筛选和搜索</div>
        <div class="seach-items">
          <div class="input-box-left">
            <t-input @enter="seachValue" v-model="parmas.value" placeholder="输入关键字搜索" style="width: 100%">
            </t-input>
          </div>
          <div @click="seachValue" class="button-style">搜索</div>
        </div>
        <div class="seach-item">
          <span>单元</span>
          <t-select
            @change="moduleListChange"
            v-model="parmas.ModuleId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style11-id`,
            }"
          >
            <t-option v-for="item in datas.moduleList" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>类型</span>
          <t-select
            @change="select3Change"
            v-model="parmas.typeId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style11-id`,
            }"
          >
            <t-option v-for="item in datas.select3" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>年代</span>
          <t-cascader
            v-if="clseaSelcet"
            @change="ageIdChange"
            placeholder=""
            v-model="parmas.ageId"
            :options="datas.select4"
            :popupProps="{
              attach: `#seach-box-style11-id`,
            }"
            valueType="full"
            :keys="{
              value: 'id',
              children: 'children',
              label: 'text',
            }"
          />
        </div>
        <div class="seach-item">
          <span>单位</span>
          <t-select
            @change="companyChange"
            v-model="parmas.CompanyId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style11-id`,
            }"
          >
            <t-option v-for="item in datas.company" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>级别</span>
          <t-select
            @change="select1Change"
            v-model="parmas.levelId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style11-id`,
            }"
          >
            <t-option v-for="item in datas.select1" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="btn-box">
          <div @click="clear" class="btn-box-item1">
            <span>清空</span>
          </div>
          <div @click="seachInit" class="btn-box-item2">
            <span>筛选</span>
          </div>
        </div>
      </div>
    </t-drawer>
  </div>
</template>

<script lang="ts">
// @ts-nocheck
export default defineComponent({
  name: 'freeStyle13',
});
</script>

<script setup lang="ts">
// @ts-nocheck
import { publicUrls, filterHTML } from '@/utils/minxin';
import { useRouter, useRoute } from 'vue-router';
import { ref, watch, reactive, nextTick, computed, onActivated, defineComponent, onDeactivated } from 'vue';
import { exhibitionData } from '@/api/templates/templates';
import { companysData, modulesData } from '@/api/templates/templates';
import { useProjectStore, commonDataStore } from '@/store';
import { storeToRefs } from 'pinia';
import ScrollBoxCom from '../scrollBox.vue';
import ScrollBoxCom2 from '../scrollBoxUp.vue';
import { treeList } from '@/api/user/user';
import { exhibitShowpiece } from '@/api/templates/templates';
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';

const clseaSelcet = ref(true);
const topShow = ref(false);
const scrollNumber = ref(0);
const heartbeat = ref(0); //页面心跳值
const Scrollwidth = ref();
const scrollheight = ref();
const exhibits16 = ref(null); //父元素挂在ref
const visible = ref(false);
const scrollBox = ref(null);
const percentage = ref(0);
const list = ref([]);
const cascader = ref(true);
const type = ref(true);
const total = ref(0);
const loading = ref(false);
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const datas = reactive({
  select1: [{ id: -1, text: '全部' }], //级别
  select2: [{ id: 0, text: '全部' }], //来源
  select3: [{ id: -1, text: '全部' }], //类型
  select4: [{ id: 0, text: '全部' }], //年代
  company: [], //单位
  moduleList: [], //单元
});
const parmasList = ref({
  typeId: '',
  ageId: '',
  levelId: '',
  ModuleId: '',
  CompanyId: '',
});
const isMobile = navigator.userAgent.match(
  /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,
);
const info = ref({});
const previewId = ref(0); //当前选中查看展品id
const InfomoduleId = ref(0);
const selectModuleId = ref(1);
const selecttypeId = ref(-1);
const selectCompanyId = ref(-1);
const parmas = reactive({
  value: '',
  typeId: -1,
  ageId: [0],
  levelId: -1,
  ModuleId: 1,
  CompanyId: -1,
  pageNo: 1,
  pageSize: 300,
});

let viewportwidth = window.innerWidth;
Scrollwidth.value = (viewportwidth / 900) * 560;

let viewportheight = window.innerHeight;
scrollheight.value = (viewportheight / 900) * 580;

const getScrollWidth = computed(() => {
  let widths = (window.innerWidth / 900) * 560;
  return widths;
});

const getScrollHeight = computed(() => {
  let heights = (window.innerHeight / 900) * 580;
  return heights;
});

const isMassage = computed(() => {
  return (
    parmas.value != '' ||
    (parmas.typeId != null && parmas.typeId != -1) ||
    parmas.ageId[0] !== 0 ||
    (parmas.levelId != null && parmas.levelId != -1) ||
    parmas.ModuleId != 1 ||
    parmas.CompanyId != -1
  );
});

const components = computed(() => {
  if (type.value) return ScrollBoxCom;
  else return ScrollBoxCom2;
});

const dynamicSlotName = computed(() => {
  if (type.value) return 'solidBorderExcon';
  else return 'solidBorderCon';
});

const dynamicSlotChild = computed(() => {
  if (type.value) return 'solidBorderExbar';
  else return 'solidBorderEx';
});

const initDetail = async () => {
  try {
    let { data } = await exhibitShowpiece(InfomoduleId.value, previewId.value);
    info.value = data;
    console.log(info.value);
  } catch {}
};
const init = async (type?: number) => {
  try {
    if (loading.value) {
      return;
    }
    loading.value = true;
    // console.log(parmas);
    // let arr = parmas;
    // arr.ageId = arr.ageId[arr.ageId.length - 1];
    let { data } = await exhibitionData(localStorage.getItem('projectId'), {
      value: parmas.value,
      typeId: parmas.typeId,
      ageId: parmas.ageId[parmas.ageId.length - 1],
      levelId: parmas.levelId,
      ModuleId: parmas.ModuleId,
      CompanyId: parmas.CompanyId,
      pageNo: parmas.pageNo,
      pageSize: parmas.pageSize,
    });
    total.value = data.total;

    if (type) {
      list.value = data.data;
    } else {
      list.value = list.value.concat(data.data);
    }
    // console.log(list.value);
    scrollBox.value.scrollLeft = 0;
    topShow.value = false;
    // list.value = [];
    loading.value = false;
  } catch {
    loading.value = false;
  }
};
const closeType = (type: number) => {
  switch (type) {
    case 1:
      parmasList.value.typeId = '';
      parmas.typeId = -1;
      break;
    case 2:
      parmasList.value.ageId = '';
      parmas.ageId = [0];
      break;
    case 3:
      parmasList.value.levelId = '';
      parmas.levelId = -1;
      break;
    case 4:
      parmasList.value.ModuleId = '';
      parmas.ModuleId = 1;
      break;
    default:
      parmasList.value.CompanyId = '';
      parmas.CompanyId = -1;
      break;
  }
  init(2);
};
const emitTop = () => {
  //点击回到列表最左侧
  scrollBox.value.scrollLeft = 0;
  percentage.value = 0;
  topShow.value = false;
};
const preview = (id: number, moduleId: number) => {
  previewId.value = id;
  InfomoduleId.value = moduleId;
  initDetail();
};
const initSelect = async () => {
  //初始化所有下拉选项

  let res2 = await treeList(371999507447877); //类型
  let res3 = await treeList(372051821408325); //年代

  // datas.select2 = res1.data;
  datas.select3 = datas.select3.concat(res2.data);
  datas.select4 = datas.select4.concat(res3.data);
};
const initInfo = async () => {
  let { data } = await companysData(localStorage.getItem('projectId'));
  let DataList = await modulesData(localStorage.getItem('projectId'));
  let res = await treeList(371994471206981); //级别
  datas.select1 = datas.select1.concat(res.data);
  datas.moduleList = datas.moduleList.concat(DataList.data);
  datas.company = datas.company.concat(data);
};

initInfo();
initSelect();
const seachValue = () => {
  parmas.pageNo = 1;
  visible.value = false;
  init(2);
};
const seachInit = () => {
  visible.value = false;
  //   if (selectModuleId.value) {
  //     parmas.ModuleId = selectModuleId.value;
  //   }
  //   if (selecttypeId.value != -1) {
  //     parmas.typeId = selecttypeId.value;
  //   }
  //   if (selectCompanyId.value != -2) {
  //     parmas.CompanyId = selectCompanyId.value;
  //   }
  parmas.pageNo = 1;
  init(1);
};
const moduleListChange = (e, context) => {
  parmasList.value.ModuleId = context.option.label;
};
const select3Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.typeId = context.option.label;
};
const companyChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.CompanyId = context.option.label;
};
const select1Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.levelId = context.option.label;
};
// 年代
const ageIdChange = (e, context) => {
  //   console.log(context.node.labelnia)
  parmasList.value.ageId = context.node.label;
  //   parmasList.value.levelId = context.option.label;
};

const clear = () => {
  parmas.value = '';
  parmas.typeId = -1;
  parmas.ageId = [0];
  parmas.levelId = -1;
  parmas.ModuleId = 1;
  parmas.CompanyId = -1;
  selectModuleId.value = 1;
  selecttypeId.value = -1;
  selectCompanyId.value = -1;
  visible.value = false;
  parmasList.value.typeId = '';
  parmasList.value.ageId = '';
  parmasList.value.levelId = '';
  parmasList.value.ModuleId = '';
  parmasList.value.CompanyId = '';
  clseaSelcet.value = false;
  nextTick(() => {
    clseaSelcet.value = true;
  });
  init(2);
};
const pathInfo = (moduleId: number, e?: number) => {
  //查看展品详情
  store.exhibitsModuleId = moduleId;
  store.exhibitsShowpieceid = e;
  store.exhibitsInfoShow = true;

  //   router.push({
  //     name: route.meta.loopType ? pathLoop[2] : path[2],
  //     query: {
  //       showpieceid: e,
  //       moduleId: moduleId,
  //     },
  //   });
};
const blankRoute = () => {
  router.replace({ name: route.meta.loopType ? pathLoop[0] : path[0] }); // 替换为你要跳转的新路由路径
};
const handleScroll = (event) => {
  event.preventDefault(); // 阻止默认滚动行为
  const { deltaY } = event;

  // 获取滚动内容的 DOM 元素
  const contentEl = scrollBox.value;

  // 将滚动盒子向前滚动
  contentEl.scrollLeft += deltaY;
  scrollNumber.value = contentEl.scrollLeft;
  if (contentEl.scrollWidth > contentEl.clientWidth) {
    if (
      contentEl.scrollWidth < contentEl.scrollLeft + contentEl.clientWidth + 100 &&
      !loading.value &&
      list.value.length < total.value
    ) {
      parmas.pageNo = parmas.pageNo + 1;
      init();
    }
    nextTick(() => {
      const { scrollLeft, clientWidth, scrollWidth } = scrollBox.value;
      if (scrollLeft > 100) {
        topShow.value = true;
      }
      if (scrollLeft < 100) {
        topShow.value = false;
      }
      const newScrollPercentage = Math.floor((scrollLeft / (scrollWidth - clientWidth)) * 100);
      percentage.value = newScrollPercentage;
    });
  }
};
init();
onActivated(() => {
  // heartbeat.value
  if (heartbeat.value !== store.heartbeatCurrent) {
    scrollBox.value.scrollLeft = 0;
    scrollNumber.value = 0;

    clear();
  } else {
    nextTick(() => {
      if (scrollNumber.value) {
        scrollBox.value.scrollLeft = scrollNumber.value;
      }
    });
  }
  heartbeat.value = store.heartbeatCurrent;
});
onDeactivated(() => {
  clear();
});
const blankHome = () => {
  clear();
  store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
// import { publicUrls } from '@/utils/minxin';
// import { commonDataStore } from '@/store';
// const commonStore = commonDataStore();
// import { useRouter, useRoute } from 'vue-router';
// const router = useRouter();
// const route = useRoute();
// const blankHome=()=>{
//     router.push({name:route.meta.loopType?'exhibitionHome' : 'templateedit'})
// }
</script>
 
<style scoped lang="less">
.Cultural-box {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;

  // 抽屉
  :deep(.t-drawer__content-wrapper) {
    z-index: 666;
    width: 470px !important;
  }
  :deep(.t-drawer__footer) {
    display: none;
  }
  :deep(.t-drawer__body) {
    padding: 0px;
    background: #d4cab7;
  }
  // 内容盒子
  .content-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 40px;
    position: relative;
  }
}

// 头部
.Cultural-heard {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  padding: 0 76px;
  margin-bottom: 24px;
  // 返回按钮
  .backHome {
    cursor: pointer;
    width: 24px;
    height: 22px;
    position: absolute;
    left: 76px;
    top: 50%;
    transform: translateY(-50%);
  }
  // 标题
  .Cultural-heard-title {
    display: flex;
    align-items: center;
    ::v-deep p {
      font-family: SourceHanSerifCN-Bold;
      font-size: 32px;
      color: #333333;
      line-height: 48px;
      margin: 0 20px;
    }
    img {
      width: 162px;
      height: 12px;
      &:last-child {
        transform: rotate(180deg);
      }
    }
  }
  // 功能按钮
  .percentage-text {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: SourceHanSerifCN-Bold;
    font-size: 32px;
    text-align: center;
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%);
    // 筛选
    .screen {
      height: 46px;
      position: relative;
      margin-left: 30px;

      // 筛选提示点
      .seach-Icon-dot {
        position: absolute;
        top: 8px;
        right: 0px;
        width: 8px;
        height: 8px;
        background: rgba(255, 0, 0, 1);
        border-radius: 50%;
      }
      .doorIcon {
        cursor: pointer;
        font-size: 32px;
        line-height: 46px;
        color: #333;
      }
    }
    // 排列
    .freeIcon {
      height: 46px;
      cursor: pointer;
      line-height: 46px;
    }
  }
  // 排列布局按钮的hover弹窗样式
  #percentage-text {
    :deep(.t-popup) {
      transform: translate(-11px, 8px) !important;
      color: #fff;
    }
    :deep(.t-popup__content) {
      background: rgba(20, 20, 20, 1);
      box-shadow: none;
    }
    :deep(.t-popup__arrow::before) {
      background: rgba(20, 20, 20, 1);
      box-shadow: none;
      margin-left: calc(-8px / 3);
    }
    :deep(.t-popup[data-popper-placement^='bottom'] .t-popup__content--arrow) {
      margin-top: 14px;
    }
  }
}

// 内容
.content-bg {
  width: calc(100% - 120px);
  height: 100%;
  padding: 0 75px;
  background: url(https://static.jiyi.show/free/style13/publicStyle11Bg2.png?imageView2/format/webp) no-repeat
    center/100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;

  // 空状态
  .is-null {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    img {
      width: 190px;
      height: 190px;
    }
    ::v-deep p {
      font-size: 16px;
      color: #333333;
      line-height: 22px;
      opacity: 0.26;
      text-indent: 0;
    }
  }

  // 展品列表
  .right-scroll {
    display: flex;
    height: auto;
    &::-webkit-scrollbar {
      display: none;
    }
    // 展品样式（包含横向排列样式）
    .item-parent {
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-right: 20px;
      &:last-child {
        margin-right: 0;
      }
      .cover-img {
        width: 100%;
        overflow: hidden;
        &:hover img {
          transform: scale(1.5);
        }
        .cover {
          width: 100%;
          height: 100%;
          overflow: hidden;
          img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: all 0.5s ease;
          }
        }
      }
      .cover-name {
        width: 100%;
        flex-shrink: 0;
        ::v-deep p {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          font-family: SourceHanSerifCN-Bold;
          font-size: 18px;
          color: rgba(51, 51, 51, 1);
          line-height: 32px;
          text-align: center;
          text-indent: 0%;
        }
      }
    }
  }
  // 展品少于等于4个居中
  .right-scroll-min {
    margin: 0 auto;
  }

  // 宫格排列
  .right-type {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px 30px;
    justify-items: center;
    .item-parent-wrap {
      width: 100%;
      max-width: 270px;
      height: auto;
      overflow: hidden;
      margin-right: 0 !important;
      &:nth-child(4n) {
        margin-right: 0px !important;
      }
      .cover-img {
        height: 260px;
        background: rgba(238, 238, 238, 1);
      }
      .cover-name {
        margin-top: 12px;
        // padding: 0 26px;
      }
    }
  }

  // 横向排列
  .item-parent-nowrap {
    width: 270px;
    height: 440px;
    .cover-img {
      height: 440px;
      background: rgba(238, 238, 238, 1);
    }
    .cover-name {
      margin-top: 22px;
      padding: 0 18px;
    }
  }

  // 横向排列轨道样式
  .solidBorder-child1 {
    width: 100%;
    height: 2px;
    background: rgba(51, 51, 51, 0.2);
    border-radius: 2px;
  }
  // 横向排列按钮
  ::v-deep .tumb1 {
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width: 32px !important;
      height: 32px !important;
      margin-top: 3px;
    }
  }
  // 宫格排列轨道样式
  .solidBorder-child2 {
    width: 2px;
    height: 100%;
    background: rgba(51, 51, 51, 0.2);
    border-radius: 2px;
  }
  // 宫格排列按钮
  ::v-deep .tumb2 {
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 32px !important;
      height: 32px !important;
    }
  }
}

// 抽屉背景
.seach-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 110px 54px;
  background: rgba(238, 238, 238, 1);
  // 标题
  .seach-box-title {
    font-size: 22px;
    color: #333333;
    line-height: 34px;
    text-align: left;
    margin-bottom: 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
  }
  // 输入框背景
  .seach-items {
    position: relative;
    display: flex;
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background: rgba(220, 220, 220, 1);
    margin-bottom: 24px;
    // 输入框样式
    .input-box-left {
      width: 100%;
      height: 40px;
      :deep(.t-input__wrap) {
        width: 100%;
        height: 100%;
      }
      :deep(.t-input) {
        width: 100%;
        height: 100%;
        background: transparent;
        border: none !important;
        // 输入文本样式
        .t-input__inner {
          font-size: 16px;
          color: rgba(0, 0, 0, 0.38);
        }
      }
      :deep(.t-input:hover) {
        box-shadow: none;
        border-color: transparent;
      }
      :deep(.t-input--focused) {
        box-shadow: none;
        border-color: transparent;
      }
      // 输入框提示文本样式
      :deep(.t-input__inner::placeholder) {
        font-family: PingFangSC, PingFang SC;
        font-size: 16px;
        color: rgba(0, 0, 0, 0.38);
        opacity: 0.4;
      }
    }
    // 搜索按钮样式
    .button-style {
      width: 80px;
      height: 40px;
      cursor: pointer;
      z-index: 6;
      position: absolute;
      top: 0;
      right: 0;
      color: #f1ecdf;
      font-family: 'PingFang SC';
      font-size: 16px;
      line-height: 40px;
      text-align: center;
      background: rgba(51, 51, 51, 1);
      border-radius: 4px;
    }
  }

  // 筛选列表
  .seach-item {
    width: 100%;
    height: 64px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(103, 101, 103, 0.2);

    // 左侧标题样式
    span {
      position: absolute;
      left: 0;
      top: 50%;
      height: 64px;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      width: 20%;
      font-size: 16px;
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      color: rgba(51, 51, 51, 1);
    }
    // 筛选项高度
    :deep(.t-input) {
      height: 64px;
    }
    // 选中筛选项后显示样式(左侧第二个)
    :deep(.t-input__inner) {
      padding-left: 20%;
      font-size: 16px;
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      color: rgba(0, 0, 0, 0.59);
      line-height: 28px;
    }
    :deep(.t-input--focused) {
      box-shadow: none !important;
    }
    :deep(.t-input:hover) {
      border-color: transparent !important;
    }
    // 右侧箭头样式
    :deep(.t-select__right-icon) {
      font-size: 20px;
      width: 20px;
      height: 20px;
      color: rgba(103, 101, 103, 0.6);
    }

    // 年代样式
    :deep(.t-select__wrap) {
      background: transparent;
    }
    :deep(.t-select-input) {
      background: transparent;
      .t-input {
        background: transparent;
        border: none;
      }
    }
    // 年代箭头样式
    :deep(.t-cascader__icon) {
      width: 20px;
      height: 20px;
      color: rgba(103, 101, 103, 0.6);
    }
    :deep(.t-input__inner) {
      height: 32px;
    }
    :deep(.t-input:hover) {
      border-color: transparent;
    }
    // :deep(.t-select) {
    //   .t-input {
    //     background: transparent;
    //     border: none;
    //   }
    //   .t-input.t-input--suffix > .t-input__suffix {
    //     font-size: 20px;
    //     color: rgb(230, 90, 35);
    //   }
    // }
  }

  // 底部清空 筛选按钮
  .btn-box {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 200px;
    // 清空
    .btn-box-item1 {
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      width: 32px;
      height: 48px;
      span {
        font-family: PingFang SC;
        font-size: 16px;
        line-height: 24px;
        color: rgba(51, 51, 51, 1);
      }
    }
    // 筛选
    .btn-box-item2 {
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      // width: 160px;
      flex: 1;
      height: 48px;
      margin-left: 24px;
      background: url(https://static.jiyi.show/free/style13/addExhibitionBg.png) no-repeat center / 100% 100%;
      span {
        font-family: PingFang SC;
        font-size: 16px;
        line-height: 24px;
        color: #fff;
      }
    }
  }
}

// 筛选项弹窗样式
#seach-box-style11-id {
  // 弹窗背景
  ::v-deep .t-popup__content {
    background: #ffffff;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
    max-height: 283px;
    padding: 30px 0;
    box-sizing: content-box;
  }
  // 单项高度
  ::v-deep .t-select-option {
    height: 37px;
    padding-left: 38px;
    // 未选中样式
    span {
      color: rgba(0, 0, 0, 0.59);
      font-size: 16px;
      line-height: 26px;
    }
  }
  // 单项hover样式
  :deep(.t-select-option:hover) {
    background: rgba(238, 238, 238, 0.5);
    span {
      color: rgba(0, 0, 0, 0.59);
    }
  }
  // 选中样式
  ::v-deep .t-select-option.t-is-selected {
    background: transparent;
    span {
      color: rgba(0, 0, 0, 0.59);
    }
  }
}
// 年代选项弹窗样式
#Cultural-box-id {
  // 背景
  ::v-deep .t-cascader__menu {
    background: #fff;
    scrollbar-width: none;
  }
  // hover样式
  ::v-deep .t-cascader__item:hover {
    background: rgba(238, 238, 238, 0.5);
  }
  // 未选中样式
  ::v-deep .t-cascader__item {
    color: rgba(0, 0, 0, 0.59);
  }
  // 选中样式
  ::v-deep .t-cascader__item.t-is-expanded {
    background: rgba(238, 238, 238, 0.5);
    color: rgba(0, 0, 0, 0.59) !important;
    .t-icon-chevron-right {
      color: rgba(0, 0, 0, 0.59) !important;
    }
  }
  // ::v-deep .t-cascader__item.t-is-selected {
  //   color: rgba(112, 99, 85, 0.5);
  // }
}

// 底部logo
.content-door {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  .iconfonts {
    font-size: 26px;
    color: rgba(94, 94, 94, 1);
    margin-bottom: 4px;
    line-height: 32px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 32px;
    color: rgb(114, 114, 114);
    margin-left: 20px;
    padding-bottom: 7px;
  }
}
</style>